package com.fatesgo.mapper;

import com.fatesgo.pojo.RegisterUser;
import org.apache.ibatis.annotations.Param;

import com.fatesgo.pojo.User;

import java.util.List;

public interface UserMapper {

    User login(@Param("userName") String userName, @Param("password") String password);

    User getUserInfoById(@Param("id") int id);

    int createUser(User user);

    int updateUserInfo(User user);

    int register(RegisterUser user);

    int deleteUser(@Param("id") int id);
    List<User> selectAll(User user);

}
